package MainPanels;

import java.awt.*;
import javax.swing.*;

/*
 * This panel appears inside the 'BookFlightPanel' and contains a label and a textfield representing one
 * specific search-parameter. (The 'BookFlightPanel' contains 5 'SearchParameterPanel's)
 */

public class SearchParameterPanel extends JPanel {

	JLabel title;
	JTextField parameterField;
	
	public SearchParameterPanel(String title)
	{
		this.title = new JLabel(title);
		parameterField = new JTextField(15);
		
		this.setBackground(Color.LIGHT_GRAY);
		this.setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		
		this.add(this.title);
		this.add(parameterField);
	}
	
}
